<?php
use \waf\Waf;
use \waf\controller\WController;
use \waf\log\WLog;

class IndexController extends WController
{
    public function indexAction() 
    {
            echo "websocket index";
    }

    public function testYihooAction()
    {
        echo "websocket testYihoo";
    }

    public function testCountConnectAction()
    {
        $objServer = Waf::getObjServer();
        $ret =  $objServer->getAllConnections();
        WLog::logInfo("ret".WLog::toJson($ret), __FILE__, __LINE__, __FUNCTION__);
        echo 'ok';
    }
}